
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.xml.parsers.ParserConfigurationException;
import javax.xml.parsers.SAXParser;
import javax.xml.parsers.SAXParserFactory;
import org.xml.sax.SAXException;



/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
/**
 *
 * @author STARTHERE
 */
public class GoogleForecast {

    public static void main(String argv[]) {
        SAXParserFactory factory=SAXParserFactory.newInstance();
        try {
            InputStream xmlInput = new FileInputStream("C:\\Users\\STARTHERE\\Desktop\\file.xml");
            SAXParser saxParser=factory.newSAXParser();
            GoogleWeatherHandler handler=new GoogleWeatherHandler();
            saxParser.parse(xmlInput, handler);

        } catch (IOException ex) {
            Logger.getLogger(GoogleForecast.class.getName()).log(Level.SEVERE, null, ex);
        } catch (ParserConfigurationException ex) {
            Logger.getLogger(GoogleForecast.class.getName()).log(Level.SEVERE, null, ex);
        } catch (SAXException ex) {
            Logger.getLogger(GoogleForecast.class.getName()).log(Level.SEVERE, null, ex);
        } 
    }
}
